package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.entity.task.MyTask;

import java.util.List;
import java.util.Map;

/**
 * @author 魏锴
 * @description 针对表【tb_task_mytask】的数据库操作Service
 * @createDate 2024-01-12 17:43:13
 */
public interface MyTaskService extends IService<MyTask> {
    List<MyTask> getTaskList(int user_id);

    boolean renewScan(int id);

    boolean renewMove(int id);

    boolean renewExploit(int id);

    boolean acceptTask(int id);

    boolean refuseTask(int id);

    boolean finishTask(int id);

    Map<Integer, String> getIdNameMap(int user_id);//根据username建立mytask_id与task_name之间的映射关系
}
